|
| | DynamicPropertyType (AbstractPropertyType abstractPropertyType) |
| | Constructor.
|
| |
| | DynamicPropertyType (AbstractPropertyTypeDescriptor &abstractDescriptor) |
| | Constructor.
|
| |
| | DynamicPropertyType (DynamicPropertyType< Type > &&other) noexcept |
| | Constructor.
|
| |
| | DynamicPropertyType (string_view name) |
| | Constructor.
|
| |
| DynamicPropertyType< Type > & | operator= (DynamicPropertyType< Type > &&other) noexcept |
| |
| void | swap (DynamicPropertyType< Type > &other) noexcept |
| |
| | ~DynamicPropertyType () |
| | Destructor.
|
| |
| Descriptor * | get () const |
| |
| uint32_t | getChangeFlags () const |
| | Gets the change flags for a property type.
|
| |
| PropertyDataType | getDataType () const |
| | Gets the data type of a property type.
|
| |
| Traits::ReturnType | getDefaultValue () const |
| | Gets the default value of a property type.
|
| |
| PropertyTypeEditorInfoSharedPtr | getEditorInfo () const |
| | Gets the editor information of a property type.
|
| |
| const char * | getName () const |
| | Gets the fully qualified name of a property type in the form "Class.PropertyType".
|
| |
| const char * | getUnqualifiedName () const |
| | Gets the unqualified name of a property type in the form "PropertyType".
|
| |
| bool | isInherited () const |
| | Returns whether a property type is inheritable.
|
| |
| | operator AbstractPropertyType () const |
| | Converting operator to get AbstractPropertyType instance referring to this PropertyType instance.
|
| |
| | PropertyType (FixedString name) |
| | Constructor.
|
| |
| | PropertyType (FixedString name, DataType defaultValue, uint32_t changeFlags, bool inheritable) |
| | Constructor.
|
| |
| | PropertyType (FixedString name, DataType defaultValue, uint32_t changeFlags, bool inheritable, PropertyTypeEditorInfoSharedPtr editorInfo) |
| | Constructor.
|
| |
| | PropertyType (MetadataGeneratedName name) |
| | Constructor.
|
| |
| | PropertyType (MetadataGeneratedName name, DataType defaultValue, uint32_t changeFlags, bool inheritable) |
| | Constructor.
|
| |
| | PropertyType (MetadataGeneratedName name, DataType defaultValue, uint32_t changeFlags, bool inheritable, PropertyTypeEditorInfoSharedPtr editorInfo) |
| | Constructor.
|
| |
| | ~PropertyType () |
| | Destructor.
|
| |
template<
class Type>
class kanzi::DynamicPropertyType< Type >
DynamicPropertyType is a handle to an existing property type.
You can use it to set or get from a node a property type value with a specific data type.
You can use a DynamicPropertyType to access property types when you have their data type and fully qualified name. When you do not have a fully qualified name or data type of a property type, or they are irrelevant, to access property types, use the AbstractPropertyType type.
To learn how to create a Kanzi property type, see PropertyType.
Examples
To create a property type with a fully qualified name for an existing property type:
DynamicPropertyType<bool> visibleProperty("Node.Visible");
node->setProperty(visibleProperty, false);